package com.woniuxy.carlife.carlifeuserweb.service;

import com.woniuxy.carlife.carlifecommonsweb.exception.CarlifeGlobalException;
import com.woniuxy.carlife.carlifeuserweb.entity.Carinsurance;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author zjq
 * @ClassName:CarinsuranceService
 * @Description:车险信息
 * @date 2021/4/6 20:02
 **/

public interface CarinsuranceService extends IService<Carinsurance> {

    /*
     * 功能描述〈车险信息查看根据用户id token解析用户id〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/11 23:06
     * @throws
     */

    public Carinsurance findCarinsuranceByUserId(Integer userId) ;


    /*
     * 功能描述〈车险信息新增（用户注册时新增）〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/11 23:08
     * @throws
     */

    public Boolean addCarinsuranceByUserId(Integer userId)  ;

    /*
     * 功能描述〈车险信息修改〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/11 23:08
     * @throws
     */

    public Boolean modifyCarinsuranceByUserId(Carinsurance carinsurance) ;

}
